﻿using System;
using System.ComponentModel;
using System.Web.UI;

namespace MyLib.Web.UI {
	/// <summary>
	/// 
	/// </summary>
	[DefaultProperty("Digit")]
	[ToolboxData("<{0}:MyUniqueIDValidator runat=\"server\"></{0}:MyUniqueIDValidator>")]
	public sealed class MyUniqueIDValidator : MyFormatBaseValidator {
		/// <summary>
		/// 
		/// </summary>
		/// <returns></returns>
		protected override string GetExpression() {
			var exp = new System.Text.StringBuilder();

			exp.Append("[a-zA-Z][a-zA-Z0-9_]*");

			return exp.ToString();
		}
	} // end of MyEmailValidator.
}
